package com.mi.mapper;

import com.mi.entity.UserEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    //登录
    public UserEntity login(UserEntity ue);

    //用户名唯一性校验
    public UserEntity uniqueName(String uname);

    //注册
    public boolean regist(UserEntity ue);


    /**
     * 查询会员
     * @param userInfo
     * @return
     */
    public List<UserEntity> queryCustomer(UserEntity userInfo);

    /**
     * 修改会员
     * @param userInfo
     * @return
     */
    public boolean updCustomer(UserEntity userInfo);

    /**
     * 删除会员
     * @param uids
     * @return
     */
    public boolean delCustomer(@Param("uids") String[] uids);

    /**
     * 更改会员状态
     * @param userInfo
     * @return
     */
    public boolean updCustomerStatus(UserEntity userInfo);

    /**
     * 修改密码
     * @param userInfo
     * @return
     */
    public boolean updPass(UserEntity userInfo);

}
